package l1j.server.server.command.executor;

import static l1j.server.server.model.skill.L1SkillId.GM變身;
import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_SystemMessage;

public class L1SuperPoly implements L1CommandExecutor {
	public static L1CommandExecutor getInstance() {
		return new L1SuperPoly();
	}

	private L1SuperPoly() {
	}

	// @Override
	@Override
	public void execute(final L1PcInstance pc, final String cmdName, final String arg) {
		if (arg.equalsIgnoreCase("on")) {
			pc.setSkillEffect(GM變身, 0);
		} else if (arg.equalsIgnoreCase("off")) {
			pc.removeSkillEffect(GM變身);
		} else {
			pc.sendPackets(new S_SystemMessage(cmdName + " on|off 請輸入。"));
		}
	}
}
